package com.liaoze.stockmgt.dao;

import com.liaoze.stockmgt.model.UUser;

public interface UserDao {
	/**
	 * 根据用户ID查找用户
     * @param userId
     * @return User
     */
    UUser selectUserById(Integer userId);
    
    /**
     * 根据邮箱（登陆账号）查找用户
     * @param email
     * @return
     */
    UUser findUserByEmail(String email);
    
    /**
     * 保存插入用户
     * @param entity
     * @return
     */
    int userInsert(UUser entity);
}
